/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/15
\**********************/
#ifndef __LUA_LISTHEADERITEM_H__
#define __LUA_LISTHEADERITEM_H__
#pragma once

#include "../../Core/LuaContainer.h"

namespace DuiLib {

class LuaListHeaderItem : public LuaContainer
{
    SDLUA_CLASS_DECLARE(LuaListHeaderItem);

    void SetEnabled(bool bEnable);

    bool IsDragable();
    void SetDragable(bool bDragable);
    DWORD GetSepWidth();
    void SetSepWidth(int iWidth);
    DWORD GetTextStyle();
    void SetTextStyle(UINT uStyle);
    DWORD GetTextColor();
    void SetTextColor(DWORD dwTextColor);
    int SetTextPadding(LuaState *L);
    int GetTextPadding(LuaState *L);
    void SetFont(int index);
    bool IsShowHtml();
    void SetShowHtml(bool bShowHtml);

    int GetNormalImage(LuaState *L);
    int SetNormalImage(LuaState *L);
    int GetHotImage(LuaState *L);
    int SetHotImage(LuaState *L);
    int GetPushedImage(LuaState *L);
    int SetPushedImage(LuaState *L);
    int GetFocusedImage(LuaState *L);
    int SetFocusedImage(LuaState *L);
    int GetSepImage(LuaState *L);
    int SetSepImage(LuaState *L);
    
    void SetScale(int nScale);
    int GetScale();

    int EstimateSize(LuaState *L);
    int GetThumbRect(LuaState *L);
};

}

#endif //__LUA_LISTHEADERITEM_H__